package com.lxm.common.tools;

import cn.hutool.core.util.StrUtil;

public class ContentUtils {
    public static String getBriefMiddle(String content, int length) {
        return StrUtil.brief(content, length);
    }

    public static String getBriefEnd(String content, int length) {
        return content.length() > length ? StrUtil.sub(content, 0, length) + "..."
                : content;
    }

}
